package com.lyd.basic;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @Author:lyd
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Address implements Cloneable{
    private String addressName;
    //省略构造器、getter、setter方法
    public Address clone() {
        try {
            return (Address) super.clone();

        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }

    @Override
    public String toString() {
        return "Address{" +
                "addressName='" + addressName + '\'' +
                '}';
    }
}